package model;

import java.io.Serializable;

public class StudentMessage implements Serializable {

    private static final long serialVersionUID = 1259093777596728103L;
    private String type;//消息类型   添加 修改 删除 查询
    private Student student;
    private User user;// 用来存放账号和密码的账户

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }
    public StudentMessage(String type) {
        this.type = type;

    }

    public StudentMessage(String type, Student student) {
        this.type = type;
        this.student = student;
    }

    public StudentMessage(String type, User user) {
        this.type = type;
        this.user = user;
    }

    public StudentMessage() {
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Student getStudent() {
        return student;
    }

    public void setStudent(Student student) {
        this.student = student;
    }

    @Override
    public String toString() {
        return "StudentMessage{" +
                "type='" + type + '\'' +
                ", student=" + student +
                '}';
    }
}
